<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<f:view beforePhase="#{testDemoManaged.initPage}">

<!--内容-->
<div id="contents" class="clearfix">
    <h:form id="MEM090032">
    <!-- Box search -->
    <div id="box-search" class="box-search clearfix">

        <table class="tbl-search" summary="検索条件">
            <tr>
                <th>Nhom</th>
                <td>
                    <h:selectOneListbox size="1" value="#{testDemoManaged.userGrpId}">
                        <f:selectItems value="#{testDemoManaged.itemGroups}" />
                    </h:selectOneListbox>
                    <t:saveState value="#{testDemoManaged.itemGroups}" />
                </td>
            </tr>
            <tr>
                <th>Ten</th>
                <td>
                    <h:inputText styleClass="long" value="#{testDemoManaged.userName}"/>
                </td>
            </tr>
        </table>
        <div class="box-search-btn">
            <div><h:commandButton onclick="checkOpenBox(1);" action="#{testDemoManaged.doSearch}" value="検索する" /></div>
        </div>
    </div>
    <!-- /Box search -->
    <br/>
    <div id="alpha">
        <div class="box-input clearfix">
            <div class="pager">
                <p>[合計：<h:outputText value="#{testDemoManaged.totalRecords}" />件]</p>
                <ul>
                    <c:if test="${testDemoManaged.currentPage > 1}">
                        <li class="start">
                            <h:commandLink action="#{testDemoManaged.doSearch}" value="最初">
                                <f:param name="currentPage" value="0" />
                            </h:commandLink>
                        </li>
                    </c:if>
                    <c:if test="${testDemoManaged.currentPage > 1}">
                        <li class="prev02">
                            <h:commandLink action="#{testDemoManaged.doSearch}" value="前">
                                <f:param name="currentPage" value="#{testDemoManaged.currentPage - 1}" />
                            </h:commandLink>
                        </li>
                    </c:if>
                    <c:choose>
                        <c:when test="${testDemoManaged.totalRecords > 0}">
                            <li><h:outputText value="#{testDemoManaged.currentPage}" />/ <h:outputText value="#{testDemoManaged.endPage}" />ページ</li>
                        </c:when>
                        <c:otherwise>
                            <li>&nbsp;</li>
                        </c:otherwise>
                    </c:choose>
                    <c:if test="${testDemoManaged.currentPage < testDemoManaged.endPage}">
                        <li class="next02">
                            <h:commandLink action="#{testDemoManaged.doSearch}" value="次">
                                <f:param name="currentPage" value="#{testDemoManaged.currentPage + 1}" />
                            </h:commandLink>
                        </li>
                    </c:if>
                    <c:if test="${testDemoManaged.currentPage < testDemoManaged.endPage}">
                        <li class="end">
                            <h:commandLink action="#{testDemoManaged.doSearch}" value="最後">
                                <f:param name="currentPage" value="#{testDemoManaged.endPage}" />
                            </h:commandLink>
                        </li>
                    </c:if>
                </ul>
            </div>
            <table class="insurer-list" summary="被保険者証">
                <tr>
                    <th class="insurer_30">選択</th>
                    <th class="insurer_38">ID</th>
                    <th class="insurer_260">Ten</th>
                    <th class="insurer_160">Nhom</th>
                    <th class="insurer_160">Email</th>
                    <th class="insurer_160">Dien thoai</th>
                </tr>
                <t:dataList value="#{testDemoManaged.lsUser}" var="item">
                <f:verbatim>
                    <tr>
                        <td class="insurer_30">
                            <input type="radio" name="radioCopy" value="</f:verbatim><h:outputText value="#{item.userId}"/><f:verbatim>" id="radioCopy"/>
                        </td>
                        <td class="algn-l">
                            </f:verbatim>
                            <h:commandLink action="#{ledInsuredPersonProofManaged.initDetail}" immediate="true">
                                <h:outputText value="#{item.userId}"/>
                                <f:param name="userId" value="#{item.userId}"/>
                            </h:commandLink>
                        <f:verbatim>
                        </td>
                        <td class="algn-l">
                            </f:verbatim>
                                <h:outputText value="#{item.userName}"/>
                            <f:verbatim>
                            </td>
                        <td class="algn-l">
                            </f:verbatim>
                            <h:outputText value="#{item.userGrp.userGrpName}"/>
                        <f:verbatim>
                        </td>
                        <td class="algn-l">
                            </f:verbatim>
                           <h:outputText value="#{item.userEmail}"/>
                        <f:verbatim>
                        </td>
                        <td class="algn-l">
                            </f:verbatim>
                            <h:outputText value="#{item.userTel}"/>
                        <f:verbatim>
                        </td>
                    </tr>
                    </f:verbatim>
                </t:dataList>
                <t:saveState value="#{testDemoManaged.lsUser}" />
            </table>
            <div class="pager-btm">
                <p>[合計：<h:outputText value="#{testDemoManaged.totalRecords}" />件]</p>
                <ul>
                    <c:if test="${testDemoManaged.currentPage > 1}">
                        <li class="start">
                            <h:commandLink action="#{testDemoManaged.doSearch}" value="最初">
                                <f:param name="currentPage" value="0" />
                            </h:commandLink>
                        </li>
                    </c:if>
                    <c:if test="${testDemoManaged.currentPage > 1}">
                        <li class="prev02">
                            <h:commandLink action="#{testDemoManaged.doSearch}" value="前">
                                <f:param name="currentPage" value="#{testDemoManaged.currentPage - 1}" />
                            </h:commandLink>
                        </li>
                    </c:if>
                    <c:choose>
                        <c:when test="${testDemoManaged.totalRecords > 0}">
                            <li><h:outputText value="#{testDemoManaged.currentPage}" />/ <h:outputText value="#{testDemoManaged.endPage}" />ページ</li>
                        </c:when>
                        <c:otherwise>
                            <li>&nbsp;</li>
                        </c:otherwise>
                    </c:choose>
                    <c:if test="${testDemoManaged.currentPage < testDemoManaged.endPage}">
                        <li class="next02">
                            <h:commandLink action="#{testDemoManaged.doSearch}" value="次">
                                <f:param name="currentPage" value="#{testDemoManaged.currentPage + 1}" />
                            </h:commandLink>
                        </li>
                    </c:if>
                    <c:if test="${testDemoManaged.currentPage < testDemoManaged.endPage}">
                        <li class="end">
                            <h:commandLink action="#{testDemoManaged.doSearch}" value="最後">
                                <f:param name="currentPage" value="#{testDemoManaged.endPage}" />
                            </h:commandLink>
                        </li>
                    </c:if>
                </ul>
            </div>

        </div>

    </div>
    </h:form>
</div><!-- /contents -->

</div><!-- /pagebody -->

</f:view>